package com.hxx.two.jdbc.druida;

import com.hxx.two.jdbc.domain.TUser;
import org.junit.Test;

public class TestDemo {
    UserService userService = new UserServiceImpl();
    @Test
    public void testLogin() {
        boolean login = userService.login("admin", "123456");
        System.out.println(login);
    }

    @Test
    public void testSave() {
        TUser user = new TUser();
        user.setUsername("admin");
        user.setSex("男");
        user.setPwd("123456");
        userService.save(user);
    }
}
